from django.contrib import admin
from nekonekotrace import models


admin.site.register(models.Album)
admin.site.register(models.Anouncement)
admin.site.register(models.CatImpression)
admin.site.register(models.CatInfo)
admin.site.register(models.CatStatus)
admin.site.register(models.Favorite)
admin.site.register(models.Greeting)
admin.site.register(models.Location)
admin.site.register(models.LocationInfo)
admin.site.register(models.OpenUser)

#admin.site.register(models.Poll)

class ChoiceInline(admin.TabularInline):
    model = models.Choice
    extra = 5

class PollAdmin(admin.ModelAdmin):
    fields = ['Time', 'Title']
    inlines = [ChoiceInline]
admin.site.register(models.Poll, PollAdmin)

admin.site.register(models.Post)
admin.site.register(models.Saying)
admin.site.register(models.Treat)


